WARNING: This program does not work the way we want it to! It has a logic error and we need to fix it!

RULE: We can use a variable as an argument to control the size of multiple objects. Variables are appear orange in the code editor and are not surrounded by quotes.

  • Click Run and look at the stage to see the error.
  • Debug the program so that all four squares use the variable square_size for their size.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)